/*
Class Name      : TestLiveAgentLoginCheck
Created by      : Rucha Kulkarni
Created On      : 22/04/2013
Description     : This class helps to test LiveAgentLoginCheck Class
Version         : 1.0               
*/

@isTest
public with sharing class TestLiveAgentLoginCheck {

    //Test method for posting message and testing LiveAgentLoginCheck
    
    public static testMethod void TestLogin () {
        
        LiveAgentLoginCheck liveAgent = new LiveAgentLoginCheck();        
        Test.startTest();                        
        boolean value;
        String fNAme = 'Barbee';
        String email = 'barbeefoxx@yahoo.com';
        value = LiveAgentLoginCheck.Login(fName,email);  
       /* fNAme = 'Test';
        email = 'test@email.com';
        value = LiveAgentLoginCheck.Login(fName,email); */
        System.assertEquals(false, value);     
        Test.stopTest();      
        } 
     
    
        public static testMethod void TestLoginAccount () {
        
        LiveAgentLoginCheck liveAgent = new LiveAgentLoginCheck();        
        Test.startTest();                        
        boolean value;
        String fNAme = 'Barbee';
        String email = 'barbeefoxx@yahoo.com';
        value = LiveAgentLoginCheck.LoginAccount(fName, email);        
        fNAme = 'Test';
        email = 'abcd@email.com';
        value = LiveAgentLoginCheck.LoginAccount(fName, email);
        System.assertEquals(false, value);          
        Test.stopTest();      
        }        
}